__author__ = 'zoulida'

from enum import Enum


class CustomEnum(Enum):
    def __repr__(self):
        return "%s.%s" % (
            self.__class__.__name__, self._name_)

class FILEPATH(CustomEnum):
    SHELVEDIR = "/volume/shelve/"

if __name__ == '__main__':
    print(FILEPATH.SHELVEDIR.value)#使用方法
    print(FILEPATH.SHELVEDIR)#使用方法